package com.beta.platform.rest.auth;

/**
* @author sys
*/
public class LoginAccountSecurity {

	private static final ThreadLocal<LoginAccountDetail> ACCOUNT = new ThreadLocal<>();

    private LoginAccountSecurity(){}

    public static void clean() {
        ACCOUNT.remove();
    }

    public static LoginAccountDetail getLoginAccountDetail() {
        return ACCOUNT.get();
    }

    public static void setLoginAccountDetail(LoginAccountDetail loginAccount) {
        ACCOUNT.set(loginAccount);
    }

}
